package com.creditnet.bmc.platform.dao;

import com.creditnet.bmc.platform.domain.DeptDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by bjmaozhengwei on 2018/3/31.
 */
@Mapper
public interface DeptDao {
    DeptDO get(Long deptId);

    List<DeptDO> list(Map<String,Object> map);

    int count(Map<String,Object> map);

    int save(DeptDO dept);

    int update(DeptDO dept);

    int remove(Long deptId);

    int batchRemove(Long[] deptIds);

    Long[] listParentDept();

    int getDeptUserNumber(Long deptId);
}
